package com.chuanyin.mp3player;

import android.content.Context;
import android.os.Bundle;
import android.widget.ImageButton;

import com.chuanyin.mp3player.commons.AndroidUtil;
import com.chuanyin.mp3player.process.ButtonProcess;
import com.chuanyin.mp3player.process.OnlineSongsProcess;

public class OnlineMusicActivity extends BaseActivity{
	private ImageButton onlineBtn ;
	private ImageButton myMusicBtn;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.online_music);
		onlineBtn = (ImageButton)findViewById(R.id.onlineBtn);
		myMusicBtn = (ImageButton)findViewById(R.id.myMusicBtn);
		myMusicBtn.setImageDrawable(this.getResources().getDrawable(R.drawable.title03));
		onlineBtn.setImageDrawable(this.getResources().getDrawable(R.drawable.title04));
		init(this);
		
	}
	public  void init(Context ctx){
    	OnlineSongsProcess onlineSongsProcess;
		AndroidUtil.setOnlineSongsProcess(this, new OnlineSongsProcess(this));
		onlineSongsProcess = AndroidUtil.getOnlineSongsProcess(this);
		onlineSongsProcess.loadMainView();
		setmMainButtonProcess(new ButtonProcess(this));
    	
    }
	

	
}
